lobsterlayui.main(['index', 'layer', 'form', 'element', 'table'], {
    data: {

    },
    pageload: function (right) {
        console.log(right);
        this.initevent();
    },
    
    //初始化事件
    initevent: function () {
        var self = this;
        
        $('.joinroom').click(function(){
            var userId='张医生';
            var roomId=1234;
            var sdkAppId=1400389931;
            var secretKey='d4f4877c8fbc7cea6e9ffd9779eec138d6eb8b5750da6584f5c8f6391d25c3df';

            window.open('https://apple.mcloudsoft.cn/lobsteruiframe/trtc_web/index.html?roomId='+roomId+'&userId='+userId+'&sdkAppId='+sdkAppId+'&secretKey='+secretKey,'视频房间','');
        })
    },
    
});